package main

import (
	"fmt"
	"runtime"
	"time"
)

func p(i interface{}) {
	fmt.Println(i)
}
func loop() {
	p("loop start")
	for i := 0; i < 10; i++ {
		fmt.Printf("%d", i)
	}
	fmt.Println()
}
func main() {

	runtime.GOMAXPROCS(1)
	go loop()
	go loop()
	time.Sleep(3 * time.Second)
	runtime.GOMAXPROCS(5)
	go loop()
	go loop()
	time.Sleep(3 * time.Second)
}
